<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/inventoryinfo/q_goods_inventory/q_goods_inventory.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/inventoryinfo/q_goods_inventory/q_goods_inventory.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ID',
                footer: "Foots",
                cnName: '商品库存',
                name: 'q_goods_inventory/q_goods_inventory',
                url: "/q_goods_inventory/",
                sortName: "goods_code"
            });
            const editFormFields = ref({"goods_Storage_Location":""});
            const editFormOptions = ref([[{"dataKey":"库位编码","data":[],"title":"商品库位","required":true,"field":"goods_Storage_Location","type":"select"}]]);
            const searchFormFields = ref({"goods_Storage_Location":"","goods_code":""});
            const searchFormOptions = ref([[{"dataKey":"库位编码","data":[],"title":"商品库位","field":"goods_Storage_Location","type":"select"},{"title":"商品编码","field":"goods_code","type":"text"}]]);
            const columns = ref([{field:'ID',title:'id',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'goods_Storage_Location',title:'商品库位',type:'string',bind:{ key:'库位编码',data:[]},sort:true,width:110,require:true,align:'left',sort:true},
                       {field:'goods_code',title:'商品编码',type:'string',sort:true,width:110,align:'left'},
                       {field:'goods_name',title:'商品名称',type:'string',width:110,align:'left'},
                       {field:'goods_inventory_quantity',title:'商品库存数量',type:'float',width:110,require:true,align:'left'},
                       {field:'goods_inventory_amount',title:'商品库存金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'Cost_accounting',title:'成本核算方式',type:'int',width:80,align:'left'},
                       {field:'goods_inventory_taxless_amount',title:'库存无税金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'sunyi_sl',title:'损溢数量',type:'float',width:110,align:'left'},
                       {field:'sunyi_je',title:'损溢金额',type:'decimal',width:110,align:'left'},
                       {field:'sunyi_wsje',title:'损溢无税金额',type:'decimal',width:110,align:'left'},
                       {field:'ruku_sl',title:'入库数量',type:'float',width:110,align:'left'},
                       {field:'ruku_je',title:'入库金额',type:'decimal',width:110,align:'left'},
                       {field:'ruku_wsje',title:'入库无税金额',type:'decimal',width:110,align:'left'},
                       {field:'chuku_sl',title:'出库数量',type:'float',width:110,align:'left'},
                       {field:'chuku_je',title:'出库金额',type:'decimal',width:110,align:'left'},
                       {field:'chuku_wsje',title:'出库无税金额',type:'decimal',width:110,align:'left'},
                       {field:'diaobo_sl',title:'调拨数量',type:'float',width:110,align:'left'},
                       {field:'diaobo_je',title:'调拨金额',type:'decimal',width:110,align:'left'},
                       {field:'lingyong_sl',title:'领用数量',type:'float',width:110,align:'left'},
                       {field:'lingyong_je',title:'领用金额',type:'decimal',width:110,align:'left'},
                       {field:'lingyong_wsje',title:'领用无税金额',type:'decimal',width:110,align:'left'},
                       {field:'xiaoshou_sl',title:'销售税率',type:'float',width:110,align:'left'},
                       {field:'xiaoshou_je',title:'销售金额',type:'decimal',width:110,align:'left'},
                       {field:'xiaoshou_wsje',title:'销售无税金额',type:'decimal',width:110,align:'left'},
                       {field:'shouhoufh_sl',title:'售后发货数量',type:'float',width:110,align:'left'},
                       {field:'shouhoufh_je',title:'售后发货金额',type:'decimal',width:110,align:'left'},
                       {field:'shouhoufh_wsje',title:'售后发货无税金额',type:'decimal',width:110,align:'left'},
                       {field:'shouhouht_sl',title:'售后合同数量',type:'float',width:110,align:'left'},
                       {field:'shouhouht_je',title:'售后合同金额',type:'decimal',width:110,align:'left'},
                       {field:'shouhouht_wsje',title:'售后合同无税金额',type:'decimal',width:110,align:'left'},
                       {field:'yunweifh_sl',title:'运维发货数量',type:'float',width:110,align:'left'},
                       {field:'yunweifh_je',title:'运维发货金额',type:'decimal',width:110,align:'left'},
                       {field:'yunweifh_wsje',title:'运维发货无税金额',type:'decimal',width:110,align:'left'},
                       {field:'diaobo_wsje',title:'调拨无税金额',type:'decimal',width:110,align:'left'},
                       {field:'shengchanqr_sl',title:'生产确认数量',type:'float',width:110,align:'left'},
                       {field:'shengchanqr_je',title:'生产确认金额',type:'decimal',width:110,align:'left'},
                       {field:'shengchanqr_wsje',title:'生产确认无税金额',type:'decimal',width:110,align:'left'},
                       {field:'Voucher_sub',title:'批次编码',type:'string',width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
